package git.bds.nyc.communal.model.dto;

import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Getter;
import lombok.Setter;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

/**
 * @author 成大事
 * @since 2023/6/7 20:24
 */
@Getter
@Setter
public class AgreementDTO {

    @NotBlank(message = "协议名称不能为空")
    @ApiModelProperty("协议名称")
    private String name;

    @ApiModelProperty("协议描述")
    @NotBlank(message = "协议描述不能为空")
    private String description;

    @ApiModelProperty(value = "协议文件", required = true, dataType = "java.io.File")
    @ApiParam(value = "协议文件", required = true, type = "file")
    private MultipartFile file;


    @ApiModelProperty("0:用户登录  1:免责声明")
    @Min(0)
    @Max(1)
    private Integer type;


}
